<?php

function redirect($url, $reason = null, $top = false) {
	header('Location: ' . WEB_URL . 'redirect.php?url=' . urlencode($url) . '&reason=' . urlencode($reason) . '&top=' . urlencode($top) . '&hash=' . md5($url . session_id() . FB_SECRET));
	exit;
}

?>